package com.xps.limedriver.date.net;


import com.xps.limedriver.bean.LoginBean;
import com.xps.limedriver.date.servicrapi.UserApi;

import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

public class UserNetWorks extends RetrofitUtils {

    protected static final UserApi userApi = RetrofitUtils.getUserApi();


    /**
     * @deprecated 登陆
     * username 用户名
     * password 密码
     */
    public static void UserLogin(String username, String password, Subscriber<LoginBean> observer) {
        userApi.goLogin(username, password).subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(observer);
    }
}
